/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * DeveloppeePar.java
 *
 * Created on 22 juin 2009, 22:29:59
 */

package caylus.GUI;

import java.awt.Dimension;
import java.awt.Toolkit;

/**
 *
 * @author Mouna
 */
public class DeveloppeePar extends javax.swing.JDialog {

    /** Creates new form DeveloppeePar */
    public DeveloppeePar(java.awt.Frame parent, boolean modal) {
        super(parent, true);
        initComponents();
        centrerFenetre();
        repaint();

    }
      private void centrerFenetre()
    {
        // on place notre fenêtre au milieu
        Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
        setLocation((screen.width - getSize().width)/2,(screen.height - getSize().height)/2);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jLabelDevParISTY = new javax.swing.JLabel();
        jLabelDevPar3 = new javax.swing.JLabel();
        jLabelDevPar4 = new javax.swing.JLabel();
        jLabelDevParBedhiaf = new javax.swing.JLabel();
        jLabelDevParJOOBER = new javax.swing.JLabel();
        jLabelDevParLABASSI = new javax.swing.JLabel();
        jLabelDevParSRIDI = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jLabelDevPar1 = new javax.swing.JLabel();
        jLabelDevPar2 = new javax.swing.JLabel();
        jLabelDevParVersion = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();

        setTitle("Développé par");
        setResizable(false);

        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabelDevParISTY.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabelDevParISTY.setForeground(new java.awt.Color(0, 153, 255));
        jLabelDevParISTY.setText("ISTY1 (2009)");

        jLabelDevPar3.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabelDevPar3.setText("Projet Ingénierie Des Données (IDD)");

        jLabelDevPar4.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabelDevPar4.setText("Développé par:");

        jLabelDevParBedhiaf.setForeground(new java.awt.Color(51, 153, 0));
        jLabelDevParBedhiaf.setText("- BEDHIAF mouna");

        jLabelDevParJOOBER.setForeground(new java.awt.Color(51, 153, 0));
        jLabelDevParJOOBER.setText("- JOOBER Nizar");

        jLabelDevParLABASSI.setForeground(new java.awt.Color(51, 153, 0));
        jLabelDevParLABASSI.setText("- LABASSI Amine");

        jLabelDevParSRIDI.setForeground(new java.awt.Color(51, 153, 0));
        jLabelDevParSRIDI.setText("- SRIDI Mehdi");

        jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLabelDevPar1.setText("Jeu de société");

        jLabelDevPar2.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabelDevPar2.setForeground(new java.awt.Color(255, 102, 0));
        jLabelDevPar2.setText("\"CAYLUS\"");

        jLabelDevParVersion.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        jLabelDevParVersion.setForeground(new java.awt.Color(153, 153, 153));
        jLabelDevParVersion.setText("Version Beta");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jLabelDevParVersion)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabelDevPar1, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabelDevPar2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(13, 13, 13))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelDevPar1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelDevPar2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelDevParVersion)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/ISTY_logo.png"))); // NOI18N

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/caylus_button_ok - 2.png"))); // NOI18N
        jLabel3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel3MouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelDevParLABASSI)
                            .addComponent(jLabelDevParBedhiaf)
                            .addComponent(jLabelDevParSRIDI)
                            .addComponent(jLabelDevParJOOBER)
                            .addComponent(jLabelDevPar4))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 186, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel3)
                        .addGap(52, 52, 52)))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addComponent(jLabelDevParISTY)))
                .addGap(65, 65, 65))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(117, 117, 117)
                .addComponent(jLabelDevPar3)
                .addContainerGap(149, Short.MAX_VALUE))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(106, 106, 106)
                .addComponent(jLabel2)
                .addContainerGap(133, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addGap(18, 18, 18)
                .addComponent(jLabelDevPar3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabelDevPar4)
                                .addGap(18, 18, 18)
                                .addComponent(jLabelDevParBedhiaf)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabelDevParJOOBER, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabelDevParLABASSI)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabelDevParSRIDI))
                            .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelDevParISTY)
                        .addGap(48, 48, 48))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addContainerGap())))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(448, 448, 448)
                .addComponent(jLabel1)
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE)
                .addComponent(jLabel1))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jLabel3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel3MouseClicked
        dispose();
    }//GEN-LAST:event_jLabel3MouseClicked

    /**
    * @param args the command line arguments
    */
  

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabelDevPar1;
    private javax.swing.JLabel jLabelDevPar2;
    private javax.swing.JLabel jLabelDevPar3;
    private javax.swing.JLabel jLabelDevPar4;
    private javax.swing.JLabel jLabelDevParBedhiaf;
    private javax.swing.JLabel jLabelDevParISTY;
    private javax.swing.JLabel jLabelDevParJOOBER;
    private javax.swing.JLabel jLabelDevParLABASSI;
    private javax.swing.JLabel jLabelDevParSRIDI;
    private javax.swing.JLabel jLabelDevParVersion;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    // End of variables declaration//GEN-END:variables

}
